package com.example.service;


import com.example.entity.BuyTicketsInfo;
import com.example.entity.TicketDto;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface TicketService {

    void add(TicketDto ticketDto);

    void deleteById(Integer id);

    void updateById(TicketDto ticketDto);

    PageInfo<TicketDto> selectPage(Integer pageNum, Integer pageSize, String gameName, String gameType);

    void buyTickets(BuyTicketsInfo buyTicketsInfo);

    PageInfo<BuyTicketsInfo> selectPageTickets(Integer pageNum, Integer pageSize, String gameId, String userId, String userRole, Integer userYonghuId);
}
